<div class="path"><i class="iconfont">&#xf108;</i>  <a href="{url('default/welcome')}">开始</a> / <a href="{url('user/index')}">管理员</a> / 编辑用户</div>
<div class="m10">
<div class="table-head"><a href="{url('user/index')}" class="button"> <i class="iconfont">&#xf053;</i> 返回</a><strong>添加/编辑管理员</strong></div>
<form id="form" action="{url('user/edit')}">
<input type="hidden" name="fid" value="{$fid}"/>
{if $fid == 1}
<input type="hidden" name="website_id" value="0"/>
<input type="hidden" name="groupid" value="1"/>
{/if}
<table class="table table-th">
{if $fid != 1}
    <tr><th>网站权限:</th><td>
<select class="select" name="website_id" datatype="*">
    <option value="0" >所有站点</option>
{loop $website $vo}
    <option value="{$vo['id']}" {if $info['website_id'] == $vo['id']}selected="selected"{/if}>{$vo['title']} [ http://{$vo['url']} ]</option>
{/loop}}
</select>
    </td></tr>
    <tr><th>管理权限:</th><td>
<select class="select" name="groupid" datatype="*">
{loop $auth $vo}
    <option value="{$vo['id']}" {if $info['groupid'] == $vo['id']}selected="selected"{/if}>{$vo['name']}</option>
{/loop}}
</select>
    </td></tr>
{/if}
    <tr><th>用户名:</th><td><input datatype="s" nullmsg="请输入用户名" class="input" type="text" name="username" value="{$info['username']}"/></td></tr>
    <tr><th>新的密码:</th><td><input datatype="*6-16" nullmsg="请设置密码！" errormsg="密码范围在6~16位之间！" class="input" type="password" name="password"  value=""/></td></tr>
    <tr><th>确认秘密:</th><td><input datatype="s" recheck="password" nullmsg="请再输入一次密码！" errormsg="您两次输入的账号密码不一致！" class="input" type="password" name="chackpassword"/></td></tr>
</table>
<div class="btn fn-tac">
    <a href="{url('user/index')}" class="button"> <i class="iconfont">&#xf053;</i> 返回</a>
    <input type="submit" value="确定保存" class="button button-blue" />
    <input type="reset" value="重置" class="button button-yellow" />
</div>
</form>
</div>
<script type="text/javascript">
Do('base','dialog','form',function(){ 
    $('#form').forms();
})
</script>